#include<stdio.h>
#include<windows.h>

int main()
{
	int n;
	double s;
	s=5000;
	n=0;
	while (s<600000)
	{
		s*=1.0032;
		n++;
	}
	printf("%lf\n%d\n",s,n/12);
	system("pause");
	return 0;
} 
